= simple_form_for  @user, wrapper: :input_form do |f|
  = f.error_notification

  - @user.errors.full_messages.each do |message|
    li = message

  img src= "#{ @user.avatar.url }"
  = f.input :avatar, label: '业主头像 ',as: :file

  = f.button :submit, '保存', class: "btn btn-primary"
  = link_to '返回', users_path, class: "btn btn-info"
